# 利用下标查找元素
# 语法: list[下标值]

list = ['python','java','javascript','golang']
print(list[2])
print(list[-2])

# 通过下标修改元素
list[2] = 'js'
print(list)
list[-2] = 'javascript'
print(list)